package com.gdust.lease.web.admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gdust.lease.model.entity.LeaseAgreement;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gdust.lease.web.admin.vo.agreement.AgreementQueryVo;
import com.gdust.lease.web.admin.vo.agreement.AgreementVo;

/**
* @author syun
* @description 针对表【lease_agreement(租约信息表)】的数据库操作Service
* @createDate 2025-1-1 15:10:05
*/
public interface LeaseAgreementService extends IService<LeaseAgreement> {
    /**
     * 根据条件分页查询租约列表
     * @param page 分页对象
     * @param queryVo 查询条件
     * @return
     */
    IPage<AgreementVo> pageAgreementByQuery(IPage<IPage> page, AgreementQueryVo queryVo);

    /**
     * 根据id查询租约信息
     * @param id 传入的租期id
     */
    AgreementVo getAgreementById(Long id);
}
